﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Management.Automation;
using CrystalDecisions.Enterprise;
using CrystalDecisions.Enterprise.Desktop;

namespace BO.Management.PowerShell
{
    [Cmdlet(VerbsCommon.Get, "ObjectFullPath", DefaultParameterSetName = CONNECT_SECWINAD)]
    public class GetObjectFullPath : BaseActionObject<ContentGenericProvider, InfoObject>
    {
        

        public override ContentGenericProvider GetProvider()
        {
            return new ContentGenericProvider(this.LogonProvider);
        }

        public override void WorkWithSingleObject(InfoObject boeObject)
        {
            this.WriteObject(BoeProvider.GetFullPath(boeObject));
        }
    }
}
